@model OrchardCore.ContentFields.ViewModels.EditBooleanFieldViewModel
@{

    var settings = Model.PartFieldDefinition.GetSettings<BooleanFieldSettings>();
}

<div class="form-group">
    <div class="custom-control custom-checkbox">
        <input asp-for="Value" type="checkbox" class="custom-control-input content-preview-select" checked="@Model.Value" />
        <label class="custom-control-label" asp-for="Value">
            @(string.IsNullOrEmpty(settings.Label) ? Model.PartFieldDefinition.DisplayName() : settings.Label)
            @if (!String.IsNullOrEmpty(settings.Hint))
            {
                <span class="hint">— @settings.Hint</span>
            }
        </label>
    </div>
</div>
